<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="./004bind.js"></script>
    <script>
        function add(a,b)
        {
            return a+b+this.c
        }
        let obj={
            c:521
        }
        window.c=1314
        let fn=bind(add,obj,10,20);
        console.log(fn());
        let fn2=bind(add,obj)
        console.log(fn2(10,20));
    </script>
</body>
</html>